package FilePratice;

import java.io.*;
import java.nio.file.spi.FileSystemProvider;

public class FilePratice {

	public static void main(String[] args) throws IOException {

//		FileOutputStream f1 = new FileOutputStream("E:\\File练习\\随便读");
//
//		byte[] a = "陈俊希是大帅哥".getBytes();
//
//		f1.write(a);
		
		FileInputStream f2 = new FileInputStream("E:\\File练习\\随便读.txt");
		
		int condition = f2.read();
		while( condition != -1) {
			System.out.print((char)condition);
			condition = f2.read();
			
		}
		f2.close();

	}


}
